package netjava.Action;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import netjava.Dao.MessageDao;
import netjava.pojo.Messageborder;

public class ManagemessageAction implements netjava.Interface.Action {
	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		MessageDao dao = new MessageDao();
		List<Messageborder> list = dao.selectall();
		request.getSession().setAttribute("messagelist", list);
		return "/displaymessage.jsp";
	}

}
